package peer.SearchManager;

import java.net.InetSocketAddress;
import java.util.Collections;
import java.util.HashMap;

import peer.SharingManager.FileReference;

public class Search
{
	private final int searchID;
	
	private final String searchString;
	

	
	
	public Search(String searchstr)
	{
		searchID = SearchManager.instance().nextSearchID();
		searchString = searchstr;
		

		
	}
	
	 class SearchResult
	{
		public String fileName;
		
		public long fileSize;
		
		public String hashCode;
		
		public int numberOfHits;
		
		public int getHits()
		{
			return numberOfHits;
		}
		public SearchResult(String name, long size, String hashcode)
		{
			fileName = name;
			fileSize = size;
			hashCode = hashcode;
			
			numberOfHits = 0;
			
		}
		
	}


	public String getSearchString() {
		return searchString;
	}

	public int getSearchID() {
		return  searchID;
	}
}
